package com.chuxing.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * 考试及面试时间对象 t_time
 * 
 * @author 刘祺
 * @date 2024-11-30
 */
@TableName(value ="t_time")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Time implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 事件类型：考试/免试后面试/面试 */
    private String eventType;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    /** 每天开始时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime startTime;

    /** 每天结束时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalTime endTime;
}
